home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6975 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  36 lines

  1. Path: sun001.spd.dsccc.com!spd!jmccarty
  2. From: jmccarty@spd.dsccc.com (Mike McCarty)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Watch out!  C "gotcha!"
  5. Date: 16 Feb 1996 21:16:18 GMT
  6. Organization: DSC Communications Corporation, Plano, Texas USA
  7. Message-ID: <4g2s72$mnc@sun001.spd.dsccc.com>
  8. References: <4fthhh$7th@blackice.winternet.com> <4g01ss$hgj@sun001.spd.dsccc.com> <3123C0D8.60AF@oc.com>
  9. NNTP-Posting-Host: aplo139.spd.dsccc.com
  10.  
  11. In article <3123C0D8.60AF@oc.com>, Larry Weiss  <lfw@oc.com> wrote:
  12. )Mike McCarty wrote:
  13. ) > 
  14. ) > I know of no way to make a compiler catch spelling mistakes on labels
  15. ) > except by doing what Pascal does - force declaration of labels.
  16. ) > ...  There is no solution except to require declarations.
  17. )
  18. )It would help a little (or maybe a lot) if the compiler were to
  19. )flag label declarations that were never referenced.
  20.  
  21. Yes, it would be helpful. I hope some compiler writers out there are
  22. listening. But it would not be a solution. The language itself has some
  23. flaws which ANSI did not cure.
  24.  
  25. Another which the ANSI committee botched (IMO) is not extending the
  26. syntax for bit fields so that one could specify alignment, size of
  27. basic integer type, and bit numbering convention. Likewise for
  28. enumerated types, to specify alignment, and size of basic integer type
  29. to use.
  30.  
  31. Mike
  32. ----
  33. char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
  34.  
  35. I don't speak for DSC.         <- They make me say that.
  36.